package com.hmall.mapper;

import com.hmall.model.EnterpriseInfo;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EnterpriseInfoMapper extends MyMapper<EnterpriseInfo> {
    List<EnterpriseInfo> selectByKeyWord(@Param("keyword") String keyword,@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);

    Integer selectCountByKeyWord(@Param("keyword")String keyword);

    EnterpriseInfo selectByCompanyName(@Param("companyName")String companyName);
}